﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace KHOALUAN
{
    public partial class frmDanhMucHocKy : Form
    {
        public frmDanhMucHocKy()
        {
            InitializeComponent();
            clsMain.cls.KhoiTaoXMLTable(clsMain.FormHocKy, 3);
            clsMain.cls.clsForm.xmlD[clsMain.FormHocKy].ColumnName[0] = "MÃ SỐ HỌC KỲ";
            clsMain.cls.clsForm.xmlD[clsMain.FormHocKy].ColumnName[1] = "TÊN HỌC KỲ";
            clsMain.cls.clsForm.xmlD[clsMain.FormHocKy].ColumnName[2] = "GHI CHÚ";
            clsMain.cls.clsForm.xmlD[clsMain.FormHocKy].Names[0] = "MSHK";
            clsMain.cls.clsForm.xmlD[clsMain.FormHocKy].Names[1] = "TENHK";
            clsMain.cls.clsForm.xmlD[clsMain.FormHocKy].Names[2] = "GHICHU";
        }


        private void frmDanhMucHocKy_Load(object sender, EventArgs e)
        {
           
            clsMain.cls.KhoiTaoFormControls(clsMain.FormHocKy);
            clsMain.cls.KhoiTaoFormControls(clsMain.FormHocKy,dgvHocKy);
            clsMain.cls.KhoiTaoFormControls(clsMain.FormHocKy, butHocKy);
        }

        private void flexDataGridView1_MouseDoubleClick(object sender, EventArgs e)
        {
            clsMain.cls.AddDataToControls(clsMain.FormHocKy);
        }

        private void butHocKy_Click(object sender, EventArgs e)
        {
            
            clsMain.cls.ButtonsClick(clsMain.FormHocKy,butHocKy.ClickState);
        }



        
    }
}
